<div class="viewBox myBox<?php echo $v['id'];?>" sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0">
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];
                
        }else{
            $v['content'] = unserialize($v['content']);
        }
         ?>
  
  
 
  <?php $isTab = $v['isTab'];
  $effect = $v['effect'];
  $autoPlay = $v['autoPlay'];
  $id = $v['id'];
  $interTime = $v['interTime'];
   if($isTab > 0){?>
   <!-- 启用切换子模块效果 --> 


    <!-- Swiper -->
    <div class="swiper-container" id="swiper-container<?php echo $v['id'];?>">
        <div class="swiper-wrapper">
        
   <!-- 启用切换子模块效果 -->
<?php }?> 
    <?php foreach($v['sub'] as $key => $subvo){
    if($isTab > 0){ echo '<div class="swiper-slide">';}
    include('./Tpl/Home/TemplateDefault/Modules-'.$subvo['filename'].C('TMPL_TEMPLATE_SUFFIX'));
   if($isTab > 0){ echo '</div>';}
    }?>
    
    <?php if($isTab > 0){?>
  <!-- 启用切换子模块效果 -->  
  
    </div>
        <div class="swiper-pagination swiper-pagination<?php echo $v['id'];?>"></div>
        
    </div>

   
    <script>
    
	
	
	$(document).ready(function(e) {
        
        var swiper<?php echo $id;?> = new Swiper('#swiper-container<?php echo $id;?>', {
		<?php if($effect == 'topLoop'){echo "direction: 'vertical',";}
		if($effect == 'fade'){echo "effect: 'fade',";}
		?>
        slidesPerView: 1,
        paginationClickable: true,
        spaceBetween: 30,
        mousewheelControl: true,
		pagination : '.swiper-pagination<?php echo $v['id'];?>',
		onTransitionEnd: function(swiper){
			//执行动画效果
	        animatecss.initanimatealls($('#swiper-container<?php echo $id;?> .viewBox').eq(swiper.activeIndex).find('.wrap-box'));
            
        }
    });
    });
    </script>
<!--启用切换子模块效果 --> 
<?php }
?>  


  <div class="clearfix"></div>
</div>

